summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cpp/compito.cpp13
1 files changed, 3 insertions, 10 deletions
diff --git a/cpp/compito.cpp b/cpp/compito.cpp
index ce3863d..205dc59 100644
--- a/cpp/compito.cpp
+++ b/cpp/compito.cpp
@@ -19,9 +19,9 @@ int main()
{
carica();
- for(int i = 0; i < N; i++) {
- if(!utili(pV[i]))
- cout << "Attenzione" << endl;
+ for(auto i : pV) {
+ if(!utili(i))
+ cout << "Attenzione -> " << i.citta << endl;
}
ord();
@@ -92,10 +92,3 @@ void visualizza()
cout << i.entrate << endl;
}
}
-
-
-
-
-
-
-