summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSanto Cariotti <sancn@live.com>2017-01-23 19:31:26 +0100
committerGitHub <noreply@github.com>2017-01-23 19:31:26 +0100
commitb58c93e17aacef2c4319d8e5271b799708fbc7a0 (patch)
tree6f2c54a7f68a76d1cc16c62a31d0ee796913cd03
parentc90888986655bddd374f18a6ede48be0f29e6e20 (diff)
Update crittografia.cc
-rw-r--r--crittografia.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/crittografia.cc b/crittografia.cc
index 8bf7f4e..010faca 100644
--- a/crittografia.cc
+++ b/crittografia.cc
@@ -19,12 +19,11 @@ int main()
in.open("input.txt");
out.open("output.txt");
- string num;
int N;
string ca;
- getline(in, num);
- istringstream(num) >> N;
+ getline(in, ca);
+ istringstream(ca) >> N;
for(int i = 0; i < N; i++){
getline(in, ca);